From 00d9838859640597e0eb835e10e769524179b413 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Sat, 1 Dec 2018 21:35:46 +0100 Subject: [PATCH] base: add half version of CMYK formats --- babl/base/model-cmyk.c | 43 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/babl/base/model-cmyk.c b/babl/base/model-cmyk.c index a550427..c689d28 100644 --- a/babl/base/model-cmyk.c +++ b/babl/base/model-cmyk.c @@ -924,6 +924,28 @@ babl_base_model_cmyk (void) babl_component ("A"), NULL ); + + babl_format_new ( + "name", "cmyk half", + babl_model ("cmyk"), + babl_type ("half"), + babl_component ("cyan"), + babl_component ("magenta"), + babl_component ("yellow"), + babl_component ("key"), + NULL + ); + babl_format_new ( + "name", "cmykA half", + babl_model ("cmykA"), + babl_type ("half"), + babl_component ("cyan"), + babl_component ("magenta"), + babl_component ("yellow"), + babl_component ("key"), + babl_component ("A"), + NULL + ); babl_format_new ( "name", "camayakaA u16", babl_model ("camayakaA"), @@ -980,6 +1002,27 @@ babl_base_model_cmyk (void) babl_component ("Key"), NULL ); + babl_format_new ( + "name", "CMYKA half", + babl_model ("CMYKA"), + babl_type ("half"), + babl_component ("Cyan"), + babl_component ("Magenta"), + babl_component ("Yellow"), + babl_component ("Key"), + babl_component ("A"), + NULL + ); + babl_format_new ( + "name", "CMYK half", + babl_model ("CMYK"), + babl_type ("half"), + babl_component ("Cyan"), + babl_component ("Magenta"), + babl_component ("Yellow"), + babl_component ("Key"), + NULL + ); babl_format_new ( "name", "CMYK u8", -- 2.30.2